//
//  AccountTools.h
//  AppExample
//
//  Created by user on 15/10/16.
//  Copyright © 2015年 AppExample. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AccountTools : NSObject

+(BOOL)isEmpty:(NSString *) string;
+(BOOL)isLogin;
+(void)saveUserToken:(NSString*)token;
+(NSString*)getUserToken;
+ (void)removeNSUserToken;
+ (BOOL)validatePassWord:(NSString*)PassWord;
+ (BOOL)validatePhoneNumber:(NSString *)string;
+ (NSString *)md5:(NSString *)str;



+ (NSArray *)getUserInformation;
+ (BOOL)allIsNumber:(NSString *)string;
+ (BOOL)validateEmail:(NSString *)string;
+ (void)exitLogin;

+(NSData *)toJSONData:(id)theData;

+ (NSString *)getLocalVersion;

+ (BOOL)isUserName:(NSString *)name;

+(BOOL)checkIDCard:(NSString *)value;

+(BOOL)isChineseStr:(NSString*)ChineseStr;



+ (void)SaveUserAddress:(NSString*)address
              createTime:(NSString *)createTime
                   email:(NSString *)email
                 mobile:(NSString *)mobile position:(NSString*)position  resultCode:(NSString*)resultCode  sex:(NSString*)sex token:(NSString*)token updateTime:(NSString*)updateTime userCd:(NSString*)userCd userHeadPhoto:(NSString*)userHeadPhoto  userId:(NSString*)userId userName:(NSString*)userName  userTokenId:(NSString*)userTokenId userType:(NSString*)userType zipCode:(NSString*)zipCode;

+(void)SaveUserToken:(NSString*)token userName:(NSString*)userName userCd:(NSString*)userCd address:(NSString*)address email:(NSString*)email zipCode:(NSString*)zipCode position:(NSString*)position sex:(NSString*)sex
;

@end
